
from .sqlserver_client_sqlalchemy import sql_server_client
from .sqlserver_client_sim import sim_sql_server_client


class Lay1SqlServerClientFactory: #
    @staticmethod
    def create(class_type, server='192.168.12.89', user = "ass",password = "123", database = 'KittingDB'):
        if class_type == "sqlalchemy":
            return sql_server_client(server=server, user = user,password = password, database = database)
        elif class_type == "sim":
            return sim_sql_server_client(server=server, user = user,password = password, database = database)
        else:
            raise ValueError("Invalid transport type")